﻿using System;
using RpcHelper.Validate;

namespace Wedonek.RpcStore.Gateway.Model
{
    public class AddIpBlackParam
    {
        /// <summary>
        /// 集群Id
        /// </summary>
        [NumValidate("rpc.mer.id.error", 1)]
        public long RpcMerId
        {
            get;
            set;
        }
        /// <summary>
        /// 系统类别
        /// </summary>
        [NullValidate("rpc.system.type.null")]
        [LenValidate("rpc.system.type.len", 5, 50)]
        [FormatValidate("rpc.system.type.error", ValidateFormat.字母点)]
        public string SystemType
        {
            get;
            set;
        }
        /// <summary>
        /// 起始IP
        /// </summary>
        [NullValidate("rpc.ipBlack.ip.null")]
        [FormatValidate("rpc.ipBlack.ip.error", ValidateFormat.IP)]
        public string IpAddress
        {
            get;
            set;
        }
        /// <summary>
        /// 截止IP
        /// </summary>
        [FormatValidate("rpc.ipBlack.end.ip.error", ValidateFormat.IP)]
        public string EndIpAddress { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        [TimeValidate("rpc.ipBlack.overTime.error", 0)]
        public DateTime? OverTime { get; set; }


        /// <summary>
        /// 备注
        /// </summary>
        [LenValidate("rpc.ipBlack.remark.len", 0,50)]
        public string Remark { get; set; }
    }
}
